﻿using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;

namespace Middleware.ApiTest.Models
{

    /// <summary>
    /// 收货信息
    /// </summary>
    public class ConsigneeInfo
    {
        [Key]
        public Guid Id { get; set; } = Guid.NewGuid();

        [Required]
        public int OrderId { get; set; }

        [Required]
        [MaxLength(100)]
        public string RecipientName { get; set; }

        [Required]
        [MaxLength(20)]
        [Phone]
        public string PhoneNumber { get; set; }

        [Required]
        public string FullAddress { get; set; }  // 完整地址

        [MaxLength(50)]
        public string Province { get; set; }     // 省份/州

        [MaxLength(50)]
        public string City { get; set; }         // 城市

        [MaxLength(50)]
        public string District { get; set; }     // 区/县

        [MaxLength(20)]
        public string PostalCode { get; set; }   // 邮编

        [MaxLength(50)]
        public string Carrier { get; set; }      // 物流公司（如 "FedEx"）

        [MaxLength(100)]
        public string TrackingNumber { get; set; } // 物流单号
    }
}
